@extends('layouts.index')

@section('content')

<div class="flex items-center">
    <div class="ml-4 text-lg leading-7 font-semibold">
        <a href="/questions/create">添加试题</a>
    </div>
</div>

<div class="ml-12">
    <div>{{ \Session::get('message')}}</div>
    <div class="mt-2 text-gray-600 dark:text-gray-400 text-sm">
        <form action="/questions/confirm" method="POST">
            @csrf
            <div>
                number: <input type="text" name="number" autofocus value="{{$data['number']}}"/>
            </div>
            <div>
                title: <textarea name="title" rows="10">{{$data['title']}}</textarea>
            </div>
            <div>
                options: <textarea name="options" rows="7">{{$data['options']}}</textarea>
            </div>
            <div>
                answer: <input type="text" name="answer" value="{{$data['answer']}}" />
            </div>
            <button type="submit">确认保存</button>
        </form>
    </div>
</div>

@stop